<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductInfo.ascx.cs" Inherits="Tathata.Web.Modules.Products.ProductInfoControl" %>

<script language="javascript" type="text/javascript">
    function UpdateMainImage(url) {
        var imgMain = document.getElementById('<%=defaultImage.ClientID%>');
        imgMain.src = url;
    }
</script>

<table cellspacing="0" cellpadding="0" border="0" align="left">
    <tbody>
        <tr>
            <td align="center">
                <table cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                        <tr>
                            <td align="center">
                                <asp:Image ID="defaultImage" runat="server" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0" style="padding-left: 10px">
    <tbody>
        <tr>
            <td>
                <b>
                    <asp:Literal ID="lProductName" runat="server" />
                </b>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0" style="padding-left: 10px">
    <tbody>
        <tr>
            <td>
                <asp:Label ID="lFullDescription" runat="server" />
                <br style="line-height: 16px;" />
                <asp:Repeater ID="rptProductPictures" runat="server">
                    <HeaderTemplate>
                        <table>
                            <tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <td align="left">
                            <a href="javascript:UpdateMainImage('<%#PictureManager.GetPictureUrl((int)Eval("PictureID"))%>')"
                                onmouseover="javascript:UpdateMainImage('<%#PictureManager.GetPictureUrl((int)Eval("PictureID"))%>')">
                                <img src="<%#PictureManager.GetPictureUrl((int)Eval("PictureID"), 50, 40)%>" style="border: 0px;" /></a>
                        </td>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tr> </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </tbody>
</table>
